<?php echo $header; ?>

<!-- Content -->
	<div id="main" class="p13t">
		<!-- Left column -->
		<?php echo $column_left; ?>
		
		<div id="col2" class="w709">
			<div class="box_tt">
                <?php if(count($breadcrumbs) > 0){ ?>   
                    <h4 class="float_left p5t">           
                        <?php foreach ($breadcrumbs as $breadcrumb) { ?>                      
                            <span class="breadcrumb_sep"><?php echo $breadcrumb['separator']; ?></span><span class="breadcrumb_text"><?php echo $breadcrumb['text']; ?></span>                    
                        <?php } ?>
                    </h4>                    
                <?php }else{ ?>
                    <h4 class="float_left p5t"><?php echo $heading_title; ?></h4>
                <?php } ?>                
                <!--	
				<span class="float_right"><a href="<?php echo $back_product; ?>"><img src="catalog/view/theme/<?php echo $template; ?>/images/bt_tibagetilprodukter.png"/></a></span>	
                -->
			</div>
			<div class="box_content_underpage">
				<div id="prdList" class="box_content_underpage1 min_heght">                     				  	
					<?php if($categories){ ?>
						<?php if($path == ''){ ?>
							<ul class="prd-list">
								<?php $t = 1; ?>
								<?php foreach($categories as $category){ ?>
									<li class="item<?php echo $t; ?>">
										<a href="<?php echo $category['href']; ?>">
											<span class="title"><?php echo $category['name']; ?></span>
											<!-- span class="title"><?php //echo $category['meta_keywords']; ?></span -->
											<!-- span class="sub"><?php //echo $category['meta_description']; ?></span -->
										</a>
									</li>                                      
									<?php $t++; ?>                                                                        
								<?php } ?> 
								<li id="giftcard_link1">
									<a href="<?php echo $giftcard_link; ?>">
										<span class="title">Køb et gavekort<br /> Tryk her ></span>
										<!-- span class="title"><?php //echo $category['meta_keywords']; ?></span -->
										<!-- span class="sub"><?php //echo $category['meta_description']; ?></span -->
									</a>
								</li>
							</ul>
						<?php } elseif(isset($classic) && $classic > 0){ ?>                            
							<div class="p12t p12l">
								<?php $i = 1; ?>                                  
								<?php foreach($categories as $item){ ?>
									<?php $css_class = ($i % 3 != 0 ? 'm10r m10b' : 'm12b'); ?>  
									<div class="bottom_pro <?php echo $css_class; ?>"><a href="<?php echo $item['href'] ?>"><?php echo $item['name']; ?></a></div>                            
									<?php if($i % 3 == 0){ ?>
										<div class="cb"></div>  
									<?php } ?>
									<?php $i++; ?>   
								<?php } ?>                                                            
							</div>
						<?php } else{ ?>
							<div id="sub_category">
								<ul class="prd-list lampers">
									<?php $i = 1; $count = count($categories); ?> 
									<?php foreach($categories as $item){ ?>
										<?php $css_class = ($i == 1 ? 'class="first"' : ($i == $count ? 'class="last"' : '')); ?>                                          
										<li <?php echo $css_class; ?>>
											<a href="<?php echo $item['href'] ?>">
												<span><?php echo $item['name']; ?></span>
												<img src="<?php echo $item['image']; ?>" alt="<?php echo $item['name']; ?>" />
											</a>
										</li>
										<?php $i++; ?>   
									<?php } ?>										  	                                                
								</ul>
								<p class="cb"></p>
							</div>
						<?php } ?>
					<?php } ?>
				</div>
			</div>
			<div class="box_bottom"></div>
        </div>
        
		<p class="cb"></p>
	</div>
</div>
<!-- End content -->

<!-- footer -->
<?php echo $footer; ?> 